package system

import (
	"github.com/gin-gonic/gin"
	"mine-info-server/interfaces/facade"
)

type AdminUserRouter struct {
}

// InitAdminUserRouter 初始化 AdminUser 路由信息
func (s *AdminUserRouter) InitAdminUserRouter(Router *gin.RouterGroup) {
	//indexCarouselsRouter := Router.Group("indexCarousels").Use(middleware.OperationRecord())
	//foodRouter := Router.Group("food")
	adminUserRouterWithoutRecord := Router.Group("adminUser")
	server := facade.NewCommonServer()
	{
		adminUserRouterWithoutRecord.POST("login", server.Login) // 登录

		adminUserRouterWithoutRecord.GET("getUserInfo", server.GetUserInfo) // 获取用户信息

		adminUserRouterWithoutRecord.GET("getOnlineUserTotal", server.GetOnlineUserTotal) // 获取用户在线数
	}
	{
		//foodRouterWithoutRecord.GET("findFood", foodsApi.FindFood)
	}
}
